package com.example.cloudsampleprovider.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.example.service.IHelloService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class HelloService implements IHelloService {

    @Value("${server.port}")
    private String port;

    @SentinelResource("sayHelloService")
    @Override
    public String sayHello(String msg) {
        return port + " : " + msg;
    }
}
